package com.zz.framework.core.http.intercept

import okhttp3.Interceptor
import okhttp3.logging.HttpLoggingInterceptor


/**
 * Copyright © 2020 zanezhao All rights reserved.
 * Created by zanezhao on 2020/3/1 1:15 PM.
 * @author: zanezhao 1820022519@qq.com
 * @version: V1.0
 */
object LoggingIntercept {

    fun init(): Interceptor {
        val loggingInterceptor = HttpLoggingInterceptor()
        loggingInterceptor.level = HttpLoggingInterceptor.Level.BODY
        return loggingInterceptor
    }
}